import { _polar, _mid, _dis, translate, _vec, _move } from "../../math/index.js"
import { polarPoints } from "../../math/points/polarPoints.js"
import { _square } from "../polygon.js"
import { _circle, _g, _line } from "../svg.js"
import { _leaf } from "./leaf.js"


export const _gougu = (options, props) => {
    let { o = [400, 300], r = 100, a = 0, n = 6 } = options
    let ps = polarPoints({
        o,
        r,
        n,
        a
    })

    return ps.map((t, i) => {
        return _leaf({
            o,
            r,
            a: a + i * 360 / n,
            ...options,
        }, props)
    })

}